build: export potentially overridden tool chain components
authorJan Beulich <jbeulich@suse.com>
Fri, 4 Mar 2022 08:27:08 +0000 (09:27 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 4 Mar 2022 08:27:08 +0000 (09:27 +0100)
commite1cafab334b998e46057bbb8d1303be4499814bd
tree450810b64f071fd53da774ee0b265dab0b0926c5
parentd58a509e01c4833515a9a8340706d1a23bef168b
build: export potentially overridden tool chain components

When overriding the tool chain via CROSS_COMPILE, the resulting
components need to be made available to, in particular (but not limited
to) the check-endbr.sh script. Note that we don't allow overriding
ADDR2LINE yet; this would first require additions to some config/*.mk
before it would make sense to export the resulting variable as well.

The lack of NM exporting was apparently not a problem so far, but add it
at this occasion as well - we're using the tool, after all.

Fixes: 4d037425dccf ("x86: Build check for embedded endbr64 instructions")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/Makefile